#ifndef AGENTS_H
#define AGENTS_H

#include "DbObjects.h"
#include "Alarm.h"

typedef struct
{
    int           iID;
    char          sPlatforCode[128];
    char          sFactory[128];
	char          sVersion[128];
	char          sPath[128];
	char          sCheckOut[512];

} band_agent_info;      
class Agents : public DbObjects
{
    public:
    Agents(Database* pDb);
	virtual ~Agents();

    virtual BaseObject* Create();
    //BaseObject* Create(quint64 uiID);

    virtual bool SQLLoad(QString sSQLCondition);
    virtual bool SQLInsert(unsigned int uiID);
    virtual bool SQLInsert(BaseObject* pObject);
	
    virtual bool SQLModify(unsigned int uiID);
    virtual bool SQLModify(BaseObject* pObject);
    virtual bool SQLDelete(unsigned int uiID) ;
    virtual bool SQLDelete(BaseObject* pObject) ;
    virtual bool SQLClear();

};
#endif